<!--继承基文件-->
{% extends "base.html" %}
<!--标题-->
{% block title %} 添加用户 {% endblock title %}

<!--内容-->
{% block content %}
    <div class="col-lg-9">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h3 class="panel-title myPanel-title">添加用户</h3>
            </div>
            <div class="panel-body">
                <form action="" method="post" novalidate>
                    {% csrf_token %}
                    <p>
                        <label for="{{ userForm_obj.username.id_for_label }}">{{ userForm_obj.username.label }}</label>
                        {{ userForm_obj.username }} <span class="myRed">{{ userForm_obj.username.errors.0 }}</span>
                    </p>
                    <p>
                        <label for="{{ userForm_obj.password.id_for_label }}">{{ userForm_obj.password.label }}</label>
                        {{ userForm_obj.password }} <span class="myRed">{{ userForm_obj.password.errors.0 }}</span>
                    </p>
                    <p>
                        <label for="{{ userForm_obj.repassword.id_for_label }}">{{ userForm_obj.repassword.label }}</label>
                        {{ userForm_obj.repassword }} <span class="myRed">{{ userForm_obj.repassword.errors.0 }}</span>
                    </p>
                    <p>
                        <label for="{{ userForm_obj.phone.id_for_label }}">{{ userForm_obj.phone.label }}</label>
                        {{ userForm_obj.phone }} <span class="myRed">{{ userForm_obj.phone.errors.0 }}</span>
                    </p>
                    <p>
                        <label for="{{ userForm_obj.dep.id_for_label }}">{{ userForm_obj.dep.label }}</label>
                        {{ userForm_obj.dep }} <span class="myRed">{{ userForm_obj.dep.errors.0 }}</span>
                    </p>
                    <p>
                        <button>添加用户</button>
                    </p>
                </form>
            </div>
        </div>
    </div>
{% endblock content %}

<!--js文件-->
{% block jsFiles %}
    <script src="/static/js/myAddUser.js"></script>
{% endblock jsFiles %}